package com.youlai.boot.form.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.youlai.boot.form.mapper.FormCollectTargetMapper;
import com.youlai.boot.form.model.entity.FormCollectTarget;
import com.youlai.boot.form.model.query.FormCollectTargetQuery;
import com.youlai.boot.form.service.FormCollectTargetService;
import org.springframework.stereotype.Service;

@Service
public class FormCollectTargetServiceImpl extends ServiceImpl<FormCollectTargetMapper, FormCollectTarget> implements FormCollectTargetService {
    @Override
    public Page<FormCollectTargetQuery> getTaskPage(FormCollectTargetQuery queryParams) {
        // todo 此处需要拿到当前用户id，然后设置到queryParams中
        return this.baseMapper.getFormCollectTargetPage(
                new Page<>(queryParams.getPageNum(), queryParams.getPageSize()),
                queryParams
        );
    }
}
